export const timeCode = (time: string, interval = 30): number => {
  let time_str = Date.parse(time).toString();
  const format_time = parseInt(time_str.substring(0, time_str.length - 3));
  return Math.floor(format_time / interval);
};
